#ifndef CHARS_IDENTIFY
#define CHARS_IDENTIFY

#include <iostream>
#include <string>
#include <vector> 
#include "opencv2/opencv.hpp"
#include "CCharacter.h"


using namespace cv;
using namespace std;

class CharsIdentify {
 public:
  static CharsIdentify* instance();
  int classify(vector<CCharacter>& vecCharacter, bool isChinese = false, bool ifErase = false);
  int classifyChinese(vector<CCharacter>& vecCharacter);
  void LoadModel(string sAnn, string sAnnChineses);

 private:
  CharsIdentify();
  static CharsIdentify* instance_;
  CvANN_MLP m_ann;
  CvANN_MLP m_annChinese;
};

#endif
